import { BASE_PRE } from "../utils/base.js";

const equipment = {};

equipment.list = {
  url: BASE_PRE + "/equipment/info/pages",
  method: "post",
  loadingPreset: {
    background: "rgba(0,0,0,0.3)",
  },
};

equipment.lastInfo = {
  url: BASE_PRE + "/center/info/last",
  method: "get",
};

equipment.lastHeartInfo = {
  url: BASE_PRE + "/center/info/last/heart",
  method: "get",
};

equipment.getInfo = {
  url: BASE_PRE + "/center/info/search",
  method: "get",
};

equipment.downloadDay = {
  url: BASE_PRE + "/center/info/download/day/zip",
  method: "get",
};

equipment.downloadFile = {
  url: BASE_PRE + "/center/info/download/zip",
  method: "get",
};

equipment.getSettingPage = {
  url: BASE_PRE + "/equipment/ad/pages",
  method: "post",
};

equipment.saveSettingPage = {
  url: BASE_PRE + "/equipment/ad/batch/save",
  method: "post",
  headers: { "Content-Type": "application/json" },
};

equipment.tree = {
  url: BASE_PRE + "/equipment/info/tree",
  method: "get",
};

export default equipment;
